package com.dongjiantong.quarantine.serviceImpl;

import com.dongjiantong.common.web.sso.LoginInfo;
import com.dongjiantong.mybatis.BaseService;
import com.dongjiantong.quarantine.model.SupervisionRecords;

import java.util.List;
import java.util.Map;

/**
 * Created by mz on 25/12/17.
 *
 */
public interface SupervisionRecordsWriteService extends BaseService<SupervisionRecords>{

    /**
     * 创建督查记录
     * @param supervisionRecords 督查记录的主表对象
     * @param mapList 督查记录的子表对象
     * @param toStatus 到状态
     * @return Map<String , Object>
     */
    Map<String , Object> create(SupervisionRecords supervisionRecords, List<Map<String, Object>> mapList, Integer toStatus, LoginInfo loginInfo);

    /**
     * 创建督查记录
     * @param supervisionRecords 督查记录的主表对象
     * @param supervisionRecordsSubList 督查记录的子表对象
     * @param toStatus 到状态
     * @return Map<String , Object>
     */
    Map<String , Object> update(SupervisionRecords supervisionRecords, List<Map<String, Object>> supervisionRecordsSubList, Integer toStatus,LoginInfo loginInfo);

    void updateDeleteFlag(Long id);
}
